import axios from '../request/index';
//评论管理内容
export const getComment = (params: any) => {
  return axios.get('/api/comment', { params });
};
// 修改评论管理状态
export const changeComment = (id: string, pass: boolean) => {
  return axios.patch(`/api/comment/${id}`, {
    pass
  })
}
//删除评论管理内容
export const delComments = (id: string,) => {
  return axios.delete(`/api/comment/${id}`)
}
//回复评论管理内容
export const postComments = (obj:any) => {
  return axios.post('/api/comment',{...obj})
}

